<template>
<div>
 
    <fm-generate-form :data="jsonData" ref="generateForm"></fm-generate-form>
    <div>
         <el-button type="primary" style="width:200px" @click="add()">交卷</el-button>
    </div>
 
</div>
</template>

<script>
export default {
  data () {
    return {
      tableDate:[],
      jsonData:'',
      content:null,
      id:'',
      quest:{

      }
    }
  },
  mounted(){
      this.select();
  },
  methods: {
     select(){
           this.id=localStorage.getItem('id');
           console.log(this.id)
           this.axios.get('https://localhost:44337/api/app/quest/'+this.id+'/two').then(x=>{
           this.jsonData=JSON.parse(x.data.questJson)
           this.content=x.data.content
        })
     },
     add(){

     }
  }
}
</script>